home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / gutenprint / xml.h < prev   
Encoding:
C/C++ Source or Header  |  2008-03-15  |  2.6 KB  |  81 lines

  1. /*
  2.  * "$Id: xml.h,v 1.2 2006/08/07 09:52:41 rleigh Exp $"
  3.  *
  4.  *   Gutenprint module loader header
  5.  *
  6.  *   Copyright 1997-2002 Michael Sweet (mike@easysw.com),
  7.  *    Robert Krawitz (rlk@alum.mit.edu) and Michael Natterer (mitch@gimp.org)
  8.  *   Copyright 2002-2003 Roger Leigh (rleigh@debian.org)
  9.  *
  10.  *   This program is free software; you can redistribute it and/or modify it
  11.  *   under the terms of the GNU General Public License as published by the Free
  12.  *   Software Foundation; either version 2 of the License, or (at your option)
  13.  *   any later version.
  14.  *
  15.  *   This program is distributed in the hope that it will be useful, but
  16.  *   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  17.  *   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  18.  *   for more details.
  19.  *
  20.  *   You should have received a copy of the GNU General Public License
  21.  *   along with this program; if not, write to the Free Software
  22.  *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  23.  */
  24.  
  25. /**
  26.  * @file gutenprint/xml.h
  27.  * @brief XML tree functions.
  28.  */
  29.  
  30. #ifndef GUTENPRINT_XML_H
  31. #define GUTENPRINT_XML_H
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #include <gutenprint/mxml.h>
  38.  
  39. typedef int (*stp_xml_parse_func)(stp_mxml_node_t *node, const char *file);
  40.  
  41. extern void
  42. stp_register_xml_parser(const char *name, stp_xml_parse_func parse_func);
  43.  
  44. extern void
  45. stp_unregister_xml_parser(const char *name);
  46.  
  47. extern void stp_register_xml_preload(const char *filename);
  48. extern void stp_unregister_xml_preload(const char *filename);
  49.  
  50. extern int stp_xml_init_defaults(void);
  51. extern int stp_xml_parse_file(const char *file);
  52.  
  53. extern long stp_xmlstrtol(const char *value);
  54. extern unsigned long stp_xmlstrtoul(const char *value);
  55. extern double stp_xmlstrtod(const char *textval);
  56.  
  57. extern void stp_xml_init(void);
  58. extern void stp_xml_exit(void);
  59. extern stp_mxml_node_t *stp_xml_get_node(stp_mxml_node_t *xmlroot, ...);
  60. extern stp_mxml_node_t *stp_xmldoc_create_generic(void);
  61. extern void stp_xml_preinit(void);
  62.  
  63. extern stp_sequence_t *stp_sequence_create_from_xmltree(stp_mxml_node_t *da);
  64. extern stp_mxml_node_t *stp_xmltree_create_from_sequence(const stp_sequence_t *seq);
  65.  
  66. extern stp_curve_t *stp_curve_create_from_xmltree(stp_mxml_node_t *da);
  67. extern stp_mxml_node_t *stp_xmltree_create_from_curve(const stp_curve_t *curve);
  68.  
  69. extern stp_array_t *stp_array_create_from_xmltree(stp_mxml_node_t *array);
  70. extern stp_mxml_node_t *stp_xmltree_create_from_array(const stp_array_t *array);
  71. extern void stp_xml_parse_file_named(const char *name);
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.  
  77. #endif /* GUTENPRINT_XML_H */
  78. /*
  79.  * End of "$Id: xml.h,v 1.2 2006/08/07 09:52:41 rleigh Exp $".
  80.  */
  81.